import React from 'react'
import {useLocation} from "react-router-dom"
function Search() {
  let location =useLocation()
  return (
    <div>
        <input type="text" placeholder={location.state.val[location.state.index]} />
    </div>
  )
}

export default Search